package cn.iocoder.yudao.module.eval.controller.admin.major.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * 管理后台 - 专业管理导入 Response VO
 */
@Schema(description = "管理后台 - 专业管理导入 Response VO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MajorImportRespVO {

    @Schema(description = "创建成功的专业数量")
    private Integer createCount;

    @Schema(description = "更新成功的专业数量")
    private Integer updateCount;

    @Schema(description = "导入失败的专业列表", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<MajorImportFailureVO> failures;

    /**
     * 管理后台 - 专业导入失败的 VO
     */
    @Schema(description = "管理后台 - 专业导入失败的 VO")
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class MajorImportFailureVO {

        @Schema(description = "行号")
        private Integer rowIndex;

        @Schema(description = "专业名称")
        private String name;

        @Schema(description = "错误信息")
        private String errorMsg;

    }

}